
using System.ComponentModel;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
     [Table("TradeMode")]
       [Comment("贸易方式")]
     public class TradeMode:BaseModel
    {        
        /// <summary>
        /// 贸易方式编码
        /// </summary>        
        public int TrademodeId { get; set; }
        
        /// <summary>
        /// 贸易方式名称
        /// </summary>
        public string Trademodename { get; set; }
        
        /// <summary>
        /// 数据来源
        /// </summary>
        [DefaultValue(1)]
        public int Datasources { get; set; }
        
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? Addtime { get; set; }=DateTime.Now;
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? Updatetime { get; set; }

        public List<TradeData> TradeDatas { get; set; }   
    }
}